/* Custom styles for the hand-drawn, sketchy, meme aesthetic */
body {
  font-family: "Inter", sans-serif;
  background-color: #f7f7f7;
  color: #000;
  overflow-x: hidden;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e0e0e0' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.font-marker {
  font-family: "Permanent Marker", cursive;
}
.font-comic {
  font-family: "Comic Neue", cursive;
}

.sketch-border {
  border: 3px solid #000;
  box-shadow: 0.3rem 0.3rem 0 #000;
  transition: all 0.2s ease-in-out;
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
}

.sketch-border:active {
  transform: translate(0.3rem, 0.3rem);
  box-shadow: 0 0 0 #000;
}

.sketch-button {
  border: 3px solid #000;
  background-color: #fff;
  box-shadow: 0.3rem 0.3rem 0 #000;
  transition: all 0.2s ease-in-out;
  text-transform: uppercase;
  font-weight: 900;
}

.sketch-button:hover {
  background-color: #ffff00; /* Neon yellow */
}

.sketch-button:active {
  transform: translate(0.3rem, 0.3rem);
  box-shadow: 0 0 0 #000;
}

.marquee {
  white-space: nowrap;
  overflow: hidden;
  background-color: #000;
  color: #fff;
  border-bottom: 3px solid #000;
  padding: 0.5rem 0;
  font-weight: 900;
}

.marquee-content {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 20s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Doodles and scribbles */
.scribble {
  position: absolute;
  opacity: 0.7;
  pointer-events: none;
}

/* Shaking animation on hover for text */
.shake-hover:hover {
  animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  perspective: 1000px;
}

@keyframes shake {
  10%,
  90% {
    transform: translate3d(-1px, 0, 0);
  }
  20%,
  80% {
    transform: translate3d(2px, 0, 0);
  }
  30%,
  50%,
  70% {
    transform: translate3d(-4px, 0, 0);
  }
  40%,
  60% {
    transform: translate3d(4px, 0, 0);
  }
}

.speech-bubble {
  background: #fff;
  border-radius: 0.4em;
  padding: 1rem;
  border: 3px solid black;
}

.speech-bubble:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 0;
  border: 20px solid transparent;
  border-top-color: #000;
  border-bottom: 0;
  border-left: 0;
  margin-left: -10px;
  margin-bottom: -23px;
}

.floating-coin {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
}

@keyframes floatUpDown {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-30px);
  }
  100% {
    transform: translateY(0);
  }
}
.animate-float-up-down {
  animation: floatUpDown 3s ease-in-out infinite;
}

.top30 {
  margin-top: 30%;
}
.top40 {
  margin-top: 40%;
}

.top50 {
  margin-top: 50%;
}
